﻿using System;
using System.Text.RegularExpressions;

class Program
{
    static void Main()
    {
        string text = "zu.zi@mail.bg;; ciki@duduk.net,      bob@mail.bg\n\nfn12345@fmi.uni-sofia.bg\n asdffds@df.ff@f   asdfdsf@sdffdfsg   mente@eu.int | , , ;;; gero@dir.bg";
        string eMailPattern = @"([\w|\d|_|\.]+@)([\w|\d]+\.)([a-z|A-Z|0-9|\-|\.]+)";
        Regex eMailsRegex = new Regex(eMailPattern);
        Match eMails = eMailsRegex.Match(text);
        while (eMails.Success)
        {
            Console.WriteLine(eMails.Value);
            eMails = eMails.NextMatch();
        }
    }
}
